package ualrcdg.shared.exceptions;

/**
 * Thrown to indicate that a CDG operation has used an invalid type, or that an invalid type conversion has been attempted. 
 */
public class CDGTypeException extends CDGException
{
	private static final long serialVersionUID = 3056382196865283507L;

	/**
	 * Private nullary constructor
	 */
	private CDGTypeException( )
	{
		super( "" );
	}
	
	/**
	 * Parameterized constructor. Creates a new {@link CDGTypeException} with no declared causing Throwable
	 * 
	 * @param err the message detailing the cause of the exception
	 */
	public CDGTypeException( String err )
	{
		super( err );
	}

	/**
	 * Parameterized constructor. Creates a new {@link CDGTypeException} with a declared causing Throwable
	 * 
	 * @param err the message detailing the cause of the exception
	 * @param cause the exception that caused this one to be thrown
	 */
	public CDGTypeException( String err, Throwable cause )
	{
		super( err, cause );
	}
}
